package org.codehaus.groovy.grails.plugins.autodelegator.example.controller;

import org.codehaus.groovy.grails.plugins.autodelegator.example.service.*;

/**
 * @author <a href="mailto:franz.see@gmail.com">See, Franz Allan Valencia</a>
 *
 */
class HelloController {
	
	def serviceWithDeclaredMethod;
	
	def serviceWithDeclaredFunction;
	
	def serviceWithDelegatedDeclaredMethod;
	
	def serviceWithDynamicMethod;
	
	def serviceWithDelegatedDynamicMethod;

    def declaredMethod = {
    	render serviceWithDeclaredMethod.hello();
    }
    
    def declaredFunction = {
		render serviceWithDeclaredFunction.hello();	
    }
    
    def delegatedDeclaredMethod = {
		render serviceWithDelegatedDeclaredMethod.hello();
    }
    
    def dynamicMethod = {
    	render serviceWithDynamicMethod.hello();
    }
    
    def delegatedDynamicMethod = {
    	render serviceWithDelegatedDynamicMethod.hello();
    }
}


